
package com.landray.kmss.sys.organization.webservice.in;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.4.2
 * 2018-07-23T14:56:05.578+08:00
 * Generated source version: 2.4.2
 * 
 */
public final class ISysSynchroSetOrgWebService_ISysSynchroSetOrgWebServicePort_Client {

    private static final QName SERVICE_NAME = new QName("http://in.webservice.organization.sys.kmss.landray.com/", "ISysSynchroSetOrgWebServiceService");

    private ISysSynchroSetOrgWebService_ISysSynchroSetOrgWebServicePort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = ISysSynchroSetOrgWebServiceService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        ISysSynchroSetOrgWebServiceService ss = new ISysSynchroSetOrgWebServiceService(wsdlURL, SERVICE_NAME);
        ISysSynchroSetOrgWebService port = ss.getISysSynchroSetOrgWebServicePort();  
        
        {
        System.out.println("Invoking syncOrgElementsBaseInfo...");
        com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext _syncOrgElementsBaseInfo_arg0 = new com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext();
        try {
            com.landray.kmss.sys.organization.webservice.in.SysSynchroSetResult _syncOrgElementsBaseInfo__return = port.syncOrgElementsBaseInfo(_syncOrgElementsBaseInfo_arg0);
            System.out.println("syncOrgElementsBaseInfo.result=" + _syncOrgElementsBaseInfo__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking updateOrgElement...");
        com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext _updateOrgElement_arg0 = new com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext();
        try {
            com.landray.kmss.sys.organization.webservice.in.SysSynchroSetResult _updateOrgElement__return = port.updateOrgElement(_updateOrgElement_arg0);
            System.out.println("updateOrgElement.result=" + _updateOrgElement__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking delOrgStaffingLevels...");
        com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext _delOrgStaffingLevels_arg0 = new com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext();
        try {
            com.landray.kmss.sys.organization.webservice.in.SysSynchroSetResult _delOrgStaffingLevels__return = port.delOrgStaffingLevels(_delOrgStaffingLevels_arg0);
            System.out.println("delOrgStaffingLevels.result=" + _delOrgStaffingLevels__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking updateOrgStaffingLevels...");
        com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext _updateOrgStaffingLevels_arg0 = new com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext();
        try {
            com.landray.kmss.sys.organization.webservice.in.SysSynchroSetResult _updateOrgStaffingLevels__return = port.updateOrgStaffingLevels(_updateOrgStaffingLevels_arg0);
            System.out.println("updateOrgStaffingLevels.result=" + _updateOrgStaffingLevels__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking syncOrgElements...");
        com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext _syncOrgElements_arg0 = new com.landray.kmss.sys.organization.webservice.in.SysSynchroSetOrgContext();
        try {
            com.landray.kmss.sys.organization.webservice.in.SysSynchroSetResult _syncOrgElements__return = port.syncOrgElements(_syncOrgElements_arg0);
            System.out.println("syncOrgElements.result=" + _syncOrgElements__return);

        } catch (Exception_Exception e) { 
            System.out.println("Expected exception: Exception has occurred.");
            System.out.println(e.toString());
        }
            }

        System.exit(0);
    }

}
